﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000537 RID: 1335
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FHJJONJFANM : IMessage<FHJJONJFANM>, IMessage, IEquatable<FHJJONJFANM>, IDeepCloneable<FHJJONJFANM>, IBufferMessage
	{
		// Token: 0x17001140 RID: 4416
		// (get) Token: 0x06003C4C RID: 15436 RVA: 0x000A62A9 File Offset: 0x000A44A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FHJJONJFANM> Parser
		{
			get
			{
				return FHJJONJFANM._parser;
			}
		}

		// Token: 0x17001141 RID: 4417
		// (get) Token: 0x06003C4D RID: 15437 RVA: 0x000A62B0 File Offset: 0x000A44B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FHJJONJFANMReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001142 RID: 4418
		// (get) Token: 0x06003C4E RID: 15438 RVA: 0x000A62C2 File Offset: 0x000A44C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FHJJONJFANM.Descriptor;
			}
		}

		// Token: 0x06003C4F RID: 15439 RVA: 0x000A62C9 File Offset: 0x000A44C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FHJJONJFANM()
		{
		}

		// Token: 0x06003C50 RID: 15440 RVA: 0x000A62D1 File Offset: 0x000A44D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FHJJONJFANM(FHJJONJFANM other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003C51 RID: 15441 RVA: 0x000A6302 File Offset: 0x000A4502
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FHJJONJFANM Clone()
		{
			return new FHJJONJFANM(this);
		}

		// Token: 0x17001143 RID: 4419
		// (get) Token: 0x06003C52 RID: 15442 RVA: 0x000A630A File Offset: 0x000A450A
		// (set) Token: 0x06003C53 RID: 15443 RVA: 0x000A6312 File Offset: 0x000A4512
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17001144 RID: 4420
		// (get) Token: 0x06003C54 RID: 15444 RVA: 0x000A631B File Offset: 0x000A451B
		// (set) Token: 0x06003C55 RID: 15445 RVA: 0x000A6323 File Offset: 0x000A4523
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06003C56 RID: 15446 RVA: 0x000A632C File Offset: 0x000A452C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FHJJONJFANM);
		}

		// Token: 0x06003C57 RID: 15447 RVA: 0x000A633A File Offset: 0x000A453A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FHJJONJFANM other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003C58 RID: 15448 RVA: 0x000A6378 File Offset: 0x000A4578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003C59 RID: 15449 RVA: 0x000A63D6 File Offset: 0x000A45D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003C5A RID: 15450 RVA: 0x000A63DE File Offset: 0x000A45DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003C5B RID: 15451 RVA: 0x000A63E8 File Offset: 0x000A45E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003C5C RID: 15452 RVA: 0x000A6444 File Offset: 0x000A4644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003C5D RID: 15453 RVA: 0x000A649C File Offset: 0x000A469C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FHJJONJFANM other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003C5E RID: 15454 RVA: 0x000A64EC File Offset: 0x000A46EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003C5F RID: 15455 RVA: 0x000A64F8 File Offset: 0x000A46F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040017E6 RID: 6118
		private static readonly MessageParser<FHJJONJFANM> _parser = new MessageParser<FHJJONJFANM>(() => new FHJJONJFANM());

		// Token: 0x040017E7 RID: 6119
		private UnknownFieldSet _unknownFields;

		// Token: 0x040017E8 RID: 6120
		public const int AvatarTypeFieldNumber = 7;

		// Token: 0x040017E9 RID: 6121
		private AvatarType avatarType_;

		// Token: 0x040017EA RID: 6122
		public const int AvatarIdFieldNumber = 2;

		// Token: 0x040017EB RID: 6123
		private uint avatarId_;
	}
}
